package com.whfc.fmam.dao;

import com.whfc.fmam.entity.bo.FmamWeighRoomFvsDevice;
import com.whfc.fmam.entity.dto.FmamWeighRoomFvsDeviceDTO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface FmamWeighRoomFvsDeviceMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(FmamWeighRoomFvsDevice record);

    int insertSelective(FmamWeighRoomFvsDevice record);

    FmamWeighRoomFvsDevice selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(FmamWeighRoomFvsDevice record);

    int updateByPrimaryKey(FmamWeighRoomFvsDevice record);

    /**
     * 根据磅房Id查找监控列表
     * @param weighRoomId
     * @return
     * */
   List<FmamWeighRoomFvsDeviceDTO>  selectFvsDeviceListByWeighRoomId(@Param("weighRoomId") Integer weighRoomId);

    /**
     * 逻辑删除
     * @param weighRoomId
     * @param deviceId
     * */
    void deleteLogicByWeighRoomIdAndDeviceId(@Param("weighRoomId") Integer weighRoomId, @Param("deviceId") Integer deviceId);
}